package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjUserOrderCheck;

import java.util.List;

public interface MjUserOrderCheckMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjUserOrderCheck record);

    int insertSelective(MjUserOrderCheck record);

    MjUserOrderCheck selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjUserOrderCheck record);

    int updateByPrimaryKey(MjUserOrderCheck record);
    int updateAssistantConfirm(@Param("orderId") Integer orderId,@Param("isConfirm") Short isConfirm);

    List<MjUserOrderCheck> selectListByUserIdAndOrderId(@Param("userId") Integer userId, @Param("orderId") Integer orderId, @Param("isAssistant") Short isAssistant);

    List<MjUserOrderCheck> selectAssistantCheckList(@Param("userId") Integer userId,  @Param("orderId") Integer orderId);
    List<MjUserOrderCheck> selectUpdateCheckList();
}